﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IBupro.Models.LogOnModel>" %>
<%@ Import Namespace="IBupro.Extensions" %>

<asp:Content ID="loginTitle" ContentPlaceHolderID="TitleContent" runat="server">
    <%: Html.Translate("logOn") %>
</asp:Content>

<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2> <%: Html.Translate("logOn") %></h2>
    <p>
         <%: Html.Translate("enterUsernameAndPasword") %> <%: Html.Translate("notHaveAcount")%> <%: Html.ActionLink(Html.Translate("register"), "Register") %> 
    </p>

    <% using (Html.BeginForm()) { %>
        <%: Html.ValidationSummary(true, Html.Translate("loginUnsuccessfull")) %>
        <div>
            <fieldset>
                <legend><%: Html.Translate("acountInformation") %></legend>
                
                <div class="editor-label">
                    <label><%: Html.Translate("username")%></label>
                </div>
                <div class="editor-field">
                    <%: Html.TextBoxFor(m => m.UserName) %>
                    <%: Html.ValidationMessageFor(m => m.UserName) %>
                </div>
                
                <div class="editor-label">
                    <label><%: Html.Translate("password")%></label>
                </div>
                <div class="editor-field">
                    <%: Html.PasswordFor(m => m.Password) %>
                    <%: Html.ValidationMessageFor(m => m.Password) %>
                </div>
                
                <div class="editor-label">
                    <%: Html.CheckBoxFor(m => m.RememberMe) %>
                    <label><%: Html.Translate("rememberMe")%></label>
                </div>
                
                <p>
                    <input type="submit" value="<%: Html.Translate("logOn") %>" />
                </p>
            </fieldset>
        </div>
    <% } %>
</asp:Content>
